<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./map.js"></script>
</head>
<body>
  <script>
    // let array = [1,5,18];
    // let newsArray =  map(array, (item,index,array) => {
    //   return item * 10;
    // })
    // console.log(array);
    // console.log(newsArray);

    let array = [1,5,181];
    let newsArray = array.myMap((item,index,array) => {
      console.log(array);
      console.log(index);
      return item * 10
    })
    console.log(newsArray);
  </script>
</body>
</html>